package com.my.thymeleaf.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class Swicth_caseController {
    @GetMapping("/switch")
    public String switch_caseControl(HttpServletRequest request){
        request.setAttribute("sex","b");
        return "Switch_case";
    }
    @GetMapping("/Incline")
    public String inline(HttpServletRequest request) {
        request.setAttribute("name","张梦杰");
        request.setAttribute("age",22);
        return "Switch_case";
    }
}
